#ifndef __HEAD_H__
#define __HEAD_H__
#include <2025Linux.h>
#include "worker.h"
#include "taskQueue.h"
typedef  struct threadPool_s {
    //保存所有的子线程的信息
    tidArr_t tidArr;
    //任务队列
    taskQueue_t taskQueue;
    //锁
    pthread_mutex_t mutex;
    //条件变量
    pthread_cond_t cond;
}threadPool_t;
int makeWorker(threadPool_t * pthreadPool);
int transFile(int netfd);
#endif
